![]() Establishing a vxlan between a wireless access point and a node
专利摘要:
This application discloses a method for establishing a VxLAN, a wireless controller, and a switch. The wireless controller receives a message from wireless an access point. In response to the message, the wireless controller establishes a channel between the wireless controller and the wireless access point and sends a first instruction to the wireless access point through the channel. The first instruction is used to instruct the wireless access point to add a record of a first VTEP, and an IP address in the record of the first VTEP is an IP address of a switch. A VxLAN between an AP and the switch can be automatically configured on the AP by using a solution in this application, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. 公开号:EP3706373A1 申请号:EP20161020.1 申请日:2020-03-04 公开日:2020-09-09 发明作者:Zhihong Lin;Wei Liu 申请人:Huawei Technologies Co Ltd; IPC主号:H04L12-00
专利说明:
[0001] This application relates to the communications field, and in particular, to a method for establishing a virtual extensible local area network (virtual extensible local area network, VxLAN), a wireless controller, and a switch. BACKGROUND [0002] An overlay network (overlay network) may be implemented by using a VxLAN technology. The trend of wired and wireless convergence drives wireless local area network (WLAN) devices to support the overlay network. Currently, a user manually configures a VxLAN on a WLAN device (for example, an access point (access point, AP)) and a switch. However, manual configuration is complex and requires heavy workload. SUMMARY [0003] This application provides a method for establishing a VxLAN, a wireless controller, and a switch, to automatically establish a VxLAN between an AP and the switch, reducing workload for a user. [0004] According to a first aspect, a method for establishing a virtual extensible local area network VxLAN is provided, including: receiving, by a wireless controller, a message from a wireless access point, where the message includes an internet protocol (internet protocol, IP) address of the wireless access point; establishing, by the wireless controller, a channel in response to the message, where the channel is between the wireless controller and the wireless access point; and sending, by the wireless controller, a first instruction to the wireless access point through the channel, where the first instruction is used to instruct the wireless access point to add a record of a first VxLAN tunnel end point (VxLAN tunnel end point, VTEP), and an IP address in the record of the first VTEP is an IP address of a switch. In this aspect, the VxLAN between the AP and the switch may be automatically configured on the AP, so that a WLAN device can support an overlay network. [0005] With reference to the first aspect, in a first implementation of the first aspect, the method further includes: sending, by the wireless controller, a second instruction to the switch, where the second instruction is used to instruct the switch to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the wireless access point. In this implementation, multiple APs may be connected to multiple switches, and each switch adds a peer VTEP of the switch. An IP address of the VTEP is an IP address of an AP. [0006] With reference to the first implementation of the first aspect, in a second implementation of the first aspect, the message further includes a media access control (media access control, MAC) address of the wireless access point, and the method further includes: receiving, by the wireless controller, a wireless access point identification result sent by the switch, where the identification result includes the MAC address of the wireless access point; establishing, by the wireless controller, a correspondence between the IP address of the wireless access point and the IP address of the switch based on a correspondence between the IP address and the MAC address of the wireless access point in the message and a correspondence between the IP address of the switch sending the wireless access point identification result and the MAC address of the wireless access point in the wireless access point identification result; and sending, by the wireless controller, the first instruction and the second instruction based on the correspondence between the IP address of the wireless access point and the IP address of the switch. In this implementation, the switch may identify the AP, and the wireless controller establishes the correspondence between the IP address of the identified AP and the IP address of the switch, so that the switch can learn whether an AP at a peer end of a VTEP is a peer end with which the switch is expected to establish a VxLAN. [0007] According to a second aspect, a method for establishing a virtual extensible local area network VxLAN is provided, including: snooping, by a switch, a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) packet, where the DHCP packet includes a media access control MAC address of a device to which an internet protocol IP address is to be allocated; identifying, by the switch, the device to which the IP address is to be allocated as a wireless access point; sending, by the switch, a wireless access point identification result to a wireless controller, where the identification result includes the MAC address of the wireless access point; receiving, by the switch, an instruction from the wireless controller, where the instruction includes the IP address of the wireless access point; and adding, by the switch, a record of a VTEP according to the instruction, where an IP address in the record of the VTEP is the IP address of the wireless access point. In this aspect, the switch may identify the AP, and the wireless controller establishes a correspondence between the IP address of the identified AP and an IP address of the switch, so that the switch can learn whether an AP at a peer end of the VTEP is a peer end with which the switch is expected to establish a VxLAN. The switch receives an instruction from the wireless controller, and adds the record of the VTEP, so that the VxLAN between the AP and the switch is automatically configured on the AP. In this way, a WLAN device can support an overlay network, and manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0008] With reference to the second aspect, in a first implementation of the second aspect, the identifying, by the switch, the device to which the IP address is to be allocated as a wireless access point includes: identifying, by the switch based on an option in the DHCP packet, the device to which the IP address is to be allocated as the wireless access point. [0009] According to a third aspect, a wireless controller is provided, including a method module according to the first aspect or any implementation of the first aspect. [0010] According to a fourth aspect, a switch is provided, including a method module according to the second aspect or any implementation of the second aspect. [0011] According to a fifth aspect, a wireless controller is provided, including a transceiver, a memory, and a processor, where the memory stores program code, and the processor is configured to invoke the program code stored in the memory, to perform a method according to the first aspect or any implementation of the first aspect. [0012] According to a sixth aspect, a switch is provided, including a processor and a physical interface. The processor is configured to perform a method according to the second aspect or any implementation of the second aspect. [0013] According to a seventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores an instruction; when the instruction is run on a computer, the computer is enabled to perform the method according to the first aspect, the second aspect, or any implementation of the first aspect or the second aspect. [0014] According to an eighth aspect, a computer program product including an instruction is provided. When the computer program product is run on a computer, the computer is enabled to perform the method according to the first aspect, the second aspect, or any implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF DRAWINGS [0015] FIG. 1 is a schematic architectural diagram of an overlay network; FIG. 2 is a schematic architectural diagram of establishing a VxLAN between an AP and a switch shown in FIG. 1 according to an embodiment of this application; FIG. 3A and FIG. 3B are a schematic flowchart for establishing a VxLAN according to an embodiment of this application; FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a VxLAN between an AP and an edge node according to an embodiment of this application; FIG. 5A and FIG. 5B are a schematic flowchart of a method for establishing a VxLAN between an AP and a border node according to an embodiment of this application; FIG. 6 is a schematic structural diagram of a wireless controller according to an embodiment of this application; FIG. 7 is a schematic structural diagram of a switch according to an embodiment of this application; FIG. 8 is a schematic structural diagram of another wireless controller according to an embodiment of this application; and FIG. 9 is a schematic structural diagram of another switch according to an embodiment of this application.DESCRIPTION OF EMBODIMENTS [0016] FIG. 1 is a schematic architectural diagram of an overlay network. As shown in FIG. 1, an overlay network is constructed on an underlay network (underlay network). An overlay network layer carries network services to decouple the services from the network, facilitating management of the network services. A network management controller 11 is responsible for managing a physical network and the overlay network. A wireless controller 12 controls an access point. A core switch functions as a border node (border node) 13 and is responsible for packet forwarding between the overlay network and a third-party network. A switch at an aggregation layer or an access layer functions as an edge node (edge node) and functions as a VxLAN gateway of a user. Traffic from an access user enters a VxLAN network through the switch. In the physical network, one or more access points may be connected to one or more edge nodes by using a switch or directly. As shown in FIG. 1, an access point 151 and an access point 152 may be connected to an edge node 141 by using a switch 16 or directly (the access point 151 may be wiredly connected to the edge node 141, and the access point 152 may be wirelessly connected to the edge node 141). An access point 153 and an access point 154 may be connected to an edge node 142 by using the switch 16 or directly (the access point 153 may be wiredly connected to the edge node 142, and the access point 154 may be wirelessly connected to the edge node 142). The edge nodes may be connected to the border node 13 by using a switch or directly. [0017] FIG. 2 is a schematic architectural diagram of automatically establishing a VxLAN between an AP and a switch shown in FIG. 1 according to an embodiment of this application. The VxLAN is established between the access point and the switch. [0018] Specifically, when the AP accesses a network by using a distributed wireless gateway, the switch may be an edge node, and a VxLAN is established between the AP and the edge node. When the AP accesses the network by using a centralized wireless gateway, the switch may be a border node, and a VxLAN is established between the AP and the border node. For example, as shown in FIG. 2, the access point 152 is wirelessly connected to the edge node 141, and a VxLAN may be established between the access point 152 and the border node 13 or the edge node 141. Certainly, a VxLAN may also be established between the access point 154 and the border node 13 or the edge node 142. Optionally, a VxLAN has been established between the border node 13 and the edge node 141 or the edge node 142. [0019] The following describes DHCP that may be involved in this application:DHCP includes DHCPv4 and DHCPv6. They have a same working mechanism but different formats and field values. In the following, DHCPv4 is taken as an example to describe DHCP. DHCP uses a user datagram protocol (user datagram protocol, UDP) as a transport layer protocol. A host sends a request message to a port 67 of a DHCP server (DHCP server), and the DHCP server returns a response message to a port 68 of the host. A detailed interaction process is as follows:1. A DHCP client (DHCP client) sends a DHCP discover (DHCP discover) packet in a broadcast mode. 2. All DHCP servers can receive the DHCP discover packet sent by the DHCP client. All the DHCP servers respond by sending a DHCP offer (DHCP offer) packet to the DHCP client.A "Your (client) IP Address" field in the DHCP offer packet indicates an IP address that the DHCP server can provide for the DHCP client. The DHCP server places its own IP addresses in an option (option) field so that the DHCP client can distinguish different DHCP servers. After the DHCP server sends the packet, a record indicating that an IP address is allocated exists. 3. The DHCP client can process only one DHCP offer packet. A general principle is that the DHCP client processes a first received DHCP offer packet.The DHCP client sends a broadcast DHCP request (DHCP request) packet, and adds an IP address of a selected DHCP server and a required IP address to the option field. 4. After receiving the DHCP request packet, the DHCP server determines whether the IP address in the option field is the same as its own IP address. If they are different, the DHCP server does not perform any operation but deletes the corresponding IP address allocation record. If they are the same, the DHCP server sends a DHCP ACK (DHCP ACK) packet to the DHCP client and adds IP address lease information to the option field. 5. After receiving the DHCP ACK packet, the DHCP client checks whether the IP address allocated by the DHCP server is available. If the IP address is available, the DHCP client successfully obtains the IP address and automatically starts a renewal process based on the IP address lease. If the DHCP client finds that the allocated IP address is in use, the DHCP client sends a DHCP decline (DHCP decline) packet to the DHCP server to instruct the DHCP server to disable the IP address. Then, the DHCP client starts a new address application process. 6. After successfully obtaining the IP address, the DHCP client can send a DHCP release (DHCP release) packet to release its IP address at any time. After receiving the DHCP release packet, the DHCP server reclaims the corresponding IP address and re-allocates it. [0020] Embodiments of this application provide a method for establishing a VxLAN, a wireless controller, and a switch. The wireless controller receives a message from a wireless access point. In response to the message, the wireless controller establishes a channel between the wireless controller and the wireless access point and sends a first instruction to the wireless access point through the channel. The first instruction is used to instruct the wireless access point to add a record of a first VTEP, and an IP address in the record of the first VTEP is an IP address of a switch. A VxLAN between the AP and the switch can be automatically configured on the AP by using a solution in this application, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0021] The following describes the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. [0022] It should be noted that the terms "system" and "network" in the embodiments of this application may be used interchangeably. "A plurality of" means two or more. In view of this, "a plurality of" may also be understood as "at least two" in the embodiments of this application. The term "and/or" describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. [0023] FIG. 3A and FIG. 3B are a schematic flowchart for establishing a VxLAN according to an embodiment of this application, which can be applied to a networking architecture shown in FIG. 2. [0024] S301. A switch snoops to a DHCP packet. [0025] The DHCP packet includes a MAC address of a device to which an IP address is to be allocated. [0026] The switch in this embodiment is a switch with which the AP is expected to establish a VxLAN. For example, the switch may be the border node 13, the edge node 141 or the edge node 142 shown in FIG. 2. [0027] The AP goes online by applying for an IP address through a DHCP protocol. In this case, the AP is the device to which the IP address is to be allocated. In this embodiment, the AP is the foregoing DHCP client. The switch can snoop the DHCP packet broadcast by the AP. The DHCP packet is forwarded by the switch to a DHCP server. The DHCP packet includes the MAC address of the device, that is, a MAC address of the AP. [0028] S302. The switch identifies the device to which the IP address is to be allocated as the AP. [0029] The DHCP packet carries an option for identifying a device type. For example, the option is an option 60 in DHCPv4 and the option 60 includes a specific identifier of a vendor. The option 60 is used by the AP to report its vendor and configuration information. The DHCP packet herein may be the foregoing DHCP discover packet or the foregoing DHCP request packet. The switch may identify, based on the specific identifier in the option 60, the device to which the IP address is to be allocated as the AP. [0030] In addition, the DHCP packet may further carry a device capability of the AP, and the device capability is used to indicate that the AP has a capability of establishing a VXLAN. [0031] S303. The switch sends an AP identification result to a wireless controller. Correspondingly, the wireless controller receives the AP identification result. [0032] The switch sends the AP identification result to the wireless controller. The AP identification result includes the MAC address of the AP, and may further include the device capability of the AP. The wireless controller stores the MAC address of the AP. The switch sends the AP identification result to the wireless controller. For example, the switch may directly send the AP identification result to the wireless controller, or may send the AP identification result through a channel between the switch and the wireless controller. In an implementation, the channel may be already established. In another implementation, before S301, a network management controller delivers the IP address of the switch to the wireless controller, the network management controller also delivers the IP address of the wireless controller to the switch, and the wireless controller may establish the foregoing channel between the wireless controller and the switch based on the IP address of the switch. [0033] S301 to S303 is a process in which the switch discovers and identifies the AP, and notifies the wireless controller of the AP identification result. S303 is used to notify the wireless controller of a relationship between the switch and the AP. It may be understood that, in a case that there are a plurality of switches and there is a connection relationship between the AP and one of the switches, the switch needs to notify the wireless controller of the relationship between the switch and the AP, so that S303 is mandatory; in a case that there is only one switch, it may be assumed that a VxLAN needs to be established between the switch and all APs, and the wireless controller considers there is a correspondence by default, so that S303 is optional. [0034] S304. The wireless controller receives a message from the AP, where the message includes the IP address of the AP. [0035] After applying for the IP address by using DHCP, the AP can send the message to the wireless controller for registration. The message includes the foregoing IP address that is applied for. The message may further include the MAC address of the AP. [0036] S305. The wireless controller establishes a channel in response to the message, where the channel is between the wireless controller and the AP. [0037] After receiving the IP address of the AP, the wireless controller establishes the channel between the wireless controller and the AP, and may further respond to the foregoing message through the channel, to notify the AP that the registration succeeds. For example, the channel between the wireless controller and the AP is a control and provisioning of wireless access points (control and provisioning of wireless access points, CAPWAP) channel. [0038] After establishing the channel (for example, a CAPWAP channel) with the AP, the wireless controller may authenticate the AP according to a CAPWAP authentication mechanism, and identify the AP as an authenticated or a trusted device or a device that can establish a VxLAN with the switch. [0039] S306. The wireless controller establishes a correspondence between the IP address of the AP and the IP address of the switch based on a correspondence between the IP address and the MAC address of the AP in the message and a correspondence between the IP address of the switch sending the AP identification result and the MAC address of the AP in the AP identification result. [0040] After identifying the AP as an authenticated or a trusted device or a device that can establish a VxLAN with the switch, the wireless controller may establish the correspondence between the IP address of the AP and the IP address of the switch based on the IP address and the MAC address of the AP that are obtained in step S304. [0041] It may be understood that, if one or more APs are physically and wirelessly connected to one switch, the wireless controller may consider by default that the one or more APs have the foregoing correspondence with the switch. Therefore, this step is optional. [0042] S307. The wireless controller sends a first instruction to the AP through the channel, where the first instruction is used to instruct the AP to add a record of a first VTEP, and an IP address in the record of the first VTEP is the IP address of the switch. [0043] After determining that the foregoing correspondence between the IP address of the AP and the IP address of the switch exists, the wireless controller may send the first instruction to the AP through the channel between the wireless controller and the AP, to instruct the AP to add the record of the first VTEP, where the IP address in the record of the first VTEP is the IP address of the switch. [0044] The VTEP is a VxLAN tunnel end point, and is configured to encapsulate and decapsulate a VxLAN packet. The VTEP connects to a physical network and is allocated with an IP address on the physical network. The address is used to encapsulate and decapsulate the VxLAN packet. In the VxLAN packet, a source IP address in an outer IP header is a VTEP address of a local end node (or referred to as a local end VTEP); in the VxLAN packet, a destination IP address in the outer IP header is a VTEP address of a peer node. [0045] S308. The wireless controller sends a second instruction to the switch, where the second instruction is used to instruct the switch to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the AP. [0046] Optionally, if one or more APs are physically and wirelessly connected to one switch, the wireless controller may not need to send the second instruction to the switch, but may directly receive a packet that is sent by the AP by using the VxLAN, and parse an IP address in the packet to obtain the IP address of the AP. Therefore, this step is optional. [0047] S309. The AP adds the record of the first VTEP according to the first instruction. [0048] The AP adds the record of the first VTEP, and obtains the IP address of the switch, that is, establishes the VxLAN with the switch. [0049] S310. The switch adds the record of the second VTEP according to the second instruction. [0050] The switch adds the record of the second VTEP, and obtains the IP address of the AP, that is, establishes the VxLAN with the AP. Because S303 and S308 are optional and the switch may configure, by itself, a device that establishes a VxLAN with the switch, S310 is optional. [0051] The VxLAN between the AP and the switch can be automatically configured on the AP according to a method for establishing the VxLAN provided in this embodiment of this application, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0052] In a scenario, an AP accesses a network through a distributed wireless gateway, and a VxLAN is established between the AP and an edge node. The following describes in detail a method for establishing the VxLAN between the AP and the edge node. [0053] FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a VxLAN between an AP and an edge node according to an embodiment of this application. 5401. A user deploys a wireless controller and an edge node on a network management controller. [0054] Specifically, the user configures an IP address of the wireless controller and an IP address of the edge node, and configures the wireless controller to manage one or more edge nodes. [0055] S402. The network management controller delivers the IP address of the edge node to the wireless controller. [0056] There may be one or more edge nodes. The network management controller sends a list of IP addresses of the one or more edge nodes to the wireless controller. For example, the address list includes the following IP addresses of the edge nodes: (192.168.10.254, 192.168.20.254). [0057] S403. The network management controller delivers the IP address of the wireless controller to the edge node. [0058] For example, the IP address of the wireless controller is (192.168.30.1). [0059] S404. The wireless controller establishes a first channel with the edge node. [0060] According to steps S402 and S403, the wireless controller and the edge node know the IP address of each other, and the wireless controller may establish the first channel with the edge node based on the IP addresses. For example, a control channel connection is established by using CAPWAP. [0061] S405. The AP broadcasts a DHCP packet, where the DHCP packet includes an option 60. [0062] In this embodiment, the AP is the foregoing DHCP client. The AP goes online by applying for an IP address by using DHCP. The DHCP packet carries the option 60 and the option 60 includes a specific identifier of a vendor. The option 60 is used by the AP to report vendor and configuration information of the AP. The DHCP packet herein may be the foregoing DHCP discover packet or DHCP request packet. [0063] S406. The edge node snoops the broadcast DHCP packet, and forwards the broadcast DHCP packet to a DHCP server. [0064] For example, the edge node with the IP address (192.168.10.254) receives the DHCP packet sent by the AP, and forwards the DHCP packet to the DHCP server. [0065] In addition, the edge node may identify the AP by using a specific identifier included in the option 60. For example, the edge node may identify the AP as an authorized device or a device that can establish a VxLAN with the edge node. [0066] S407. The edge node reports a MAC address of the AP to the wireless controller. [0067] The DHCP packet includes the MAC address of the AP, so that the edge node can obtain the MAC address of the AP and report the MAC address to the wireless controller. S408: The AP obtains an IP address 192.168.10.1 from the DHCP server by application, establishes a second channel with the wireless controller through a physical network, and reports the IP address of the AP to the wireless controller. [0068] For example, the AP may establish a CAPWAP channel with the wireless controller through the physical network. [0069] In addition, the AP may further report the MAC address of the AP to the wireless controller. [0070] S409. The wireless controller identifies, based on information reported by the AP and the edge node, a correspondence between the IP address of the AP (192.168.10.1) and the IP address of the edge node (192.168.10.254), and generates a correspondence table, as shown in Table 1: Table 1 Correspondence between an IP of an AP and an IP of an edge node AP Edge node 1 192.168.10.1 192.168.10.254 2 ... ... [0071] Specifically, the wireless controller receives the MAC address of the AP reported by the edge node in step S407, determines the AP as an AP identified by the edge node, and then receives the MAC address and the IP address reported by the AP in step S408, so that the wireless controller may establish the correspondence between the IP of the AP and the IP of the edge node. [0072] S410. The wireless controller sends a first instruction to the AP through the second channel. [0073] The first instruction is used to instruct the AP to add a record of a first VTEP, and an IP address in the record of the first VTEP is the IP address of the edge node. [0074] S411. The wireless controller sends a second instruction to the edge node through the first channel. [0075] The second instruction is used to instruct the edge node to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the AP. S412. The edge node adds the record of the second VTEP according to the second instruction. [0076] The edge node (192.168.10.254) automatically establishes a VxLAN with the AP according to the second instruction sent by the wireless controller, and specifies an IP address of a peer VTEP as (192.168.10.1). [0077] S413. The AP adds the record of the first VTEP according to the first instruction. [0078] The AP (192.168.10.1) automatically establishes a VxLAN with the edge node according to the first instruction sent by the wireless controller, and specifies an IP address of a peer VTEP as (192.168.10.254). [0079] In this way, the AP (192.168.10.1) automatically establishes the VxLAN with the edge node (192.168.10.254), implementing automatic overlay network establishment. [0080] The VxLAN between the AP and the edge node can be established according to the method for establishing the VxLAN provided in this embodiment of this application, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0081] In another scenario, an AP accesses a network through a centralized wireless gateway. FIG. 5A and FIG. 5B are a schematic flowchart of a method for establishing a VxLAN between an AP and a border node according to an embodiment of this application. This embodiment is described by taking networking with a single border node as an example, and this solution is also applicable to networking with multiple border nodes. [0082] S501. A user deploys a wireless controller and a border node on a network management controller. [0083] Specifically, the user configures an IP address of the wireless controller and an IP address of the border node. [0084] S502. The network management controller delivers the IP address of the border node to the wireless controller. [0085] For example, the IP address of the border node is (192.168.20.254). [0086] S503. The network management controller delivers the IP address of the wireless controller to the border node. [0087] For example, the IP address of the wireless controller is (192.168.30.1). [0088] S504: The wireless controller establishes a first channel with the border node. [0089] According to steps S502 and S503, the wireless controller and the border node know the IP address of each other, and the wireless controller may establish the first channel with the border node based on the IP addresses. For example, a control channel connection is established by using CAPWAP. [0090] S505. The AP broadcasts a DHCP packet, where the DHCP packet includes an option 60. [0091] In this embodiment, the AP is the foregoing DHCP client. The AP goes online by applying for an IP address by using DHCP. The DHCP packet carries the option 60 and the option 60 includes a specific identifier of a vendor. The option 60 is used by the AP to report vendor and configuration information of the AP. The DHCP packet herein may be the foregoing DHCP discover packet or DHCP request packet. [0092] S506. The border node snoops the broadcast DHCP packet, and forwards the broadcast DHCP packet to a DHCP server. [0093] For example, the border node with the IP address (192.168.20.254) receives the DHCP packet sent by the AP, and forwards the DHCP packet to the DHCP server. [0094] In addition, the border node may identify the AP by using a specific identifier included in the option 60. For example, the border node may identify the AP as an authorized device or a device that can establish a VxLAN with the border node. [0095] S507. The border node reports a MAC address of the AP to the wireless controller. [0096] The DHCP packet includes the MAC address of the AP, so that the border node can obtain the MAC address of the AP and report the MAC address to the wireless controller. S508: The AP obtains an IP address 192.168.10.1 from the DHCP server by application, establishes a second channel with the wireless controller through a physical network, and reports the IP address of the AP to the wireless controller. [0097] For example, the AP may establish a CAPWAP tunnel with the wireless controller through the physical network. [0098] In addition, the AP may further report the MAC address of the AP to the wireless controller. [0099] S509. The wireless controller identifies, based on information reported by the AP and the border node, a correspondence between the IP address of the AP (192.168.10.1) and the IP address of the border node (192.168.10.254), and generates a correspondence table, as shown in Table 2: Table 2 Correspondence between an IP of an AP and an IP of a border node AP Border node 1 192.168.10.1 192.168.20.254 2 ... ... [0100] Specifically, the wireless controller receives the MAC address of the AP reported by the border node in step S507, determines the AP as an AP identified by the border node, and then receives the MAC address and the IP address reported by the AP in step S508, so that the wireless controller may establish the correspondence between the IP of the AP and the IP of the border node. [0101] S510. The wireless controller sends a first instruction to the AP through the second channel. [0102] The first instruction is used to instruct the AP to add a record of a first VTEP, and an IP address in the record of the first VTEP is the IP address of the border node. [0103] S511. The wireless controller sends a second instruction to the border node through the first channel. [0104] The second instruction is used to instruct the border node to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the AP. S512. The border node adds the record of the second VTEP according to the second instruction. [0105] The border node (192.168.20.254) automatically establishes a VxLAN with the AP according to the second instruction sent by the wireless controller, and specifies an IP address of a peer VTEP as (192.168.10.1). [0106] S513. The AP adds the record of the first VTEP according to the first instruction. [0107] The AP (192.168.10.1) automatically establishes a VxLAN with the border node according to the first instruction sent by the wireless controller, and specifies an IP address of a peer VTEP as (192.168.20.254). [0108] In this way, the AP (192.168.10.1) automatically establishes the VxLAN with the border node (192.168.20.254), implementing automatic overlay network establishment. The VxLAN between the AP and the border node can be established according to the method for establishing the VxLAN provided in this embodiment of this application, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0109] Based on a same concept of the method for establishing a VxLAN in the foregoing embodiment, as shown in FIG. 6, an embodiment of this application further provides a wireless controller 600. The wireless controller 600 may be applied to the method for establishing a VxLAN shown in FIG. 3A and FIG. 3B. The wireless controller 600 may be the wireless controller 21 shown in FIG. 2, or may be a component (for example, a chip) applied to the wireless controller 21. The wireless controller 600 includes a receiving unit 61, a first establishment unit 62, and a sending unit 63, and may further include a second establishment unit 64. [0110] The receiving unit 61 is configured to receive a message from a wireless access point, where the message includes an internet protocol IP address of the wireless access point. The first establishment unit 62 is configured to establish a channel in response to the message, where the channel is between the wireless controller and the wireless access point. [0111] The sending unit 63 is configured to send a first instruction to the wireless access point through the channel, where the first instruction is used to instruct the wireless access point to add a record of a first VxLAN tunnel end point VTEP, and an IP address in the record of the first VTEP is an IP address of a switch. [0112] In an implementation, the sending unit 63 is further configured to send a second instruction to the switch, where the second instruction is used to instruct the switch to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the wireless access point. [0113] In another implementation, the message further includes a media access control MAC address of the wireless access point. [0114] The receiving unit 61 is further configured to receive a wireless access point identification result sent by the switch, where the identification result includes the MAC address of the wireless access point. [0115] The second establishment unit 64 is configured to establish a correspondence between the IP address of the wireless access point and the IP address of the switch based on a correspondence between the IP address and the MAC address of the wireless access point in the message and a correspondence between the IP address of the switch sending the wireless access point identification result and the MAC address of the wireless access point in the wireless access point identification result. [0116] The sending unit 63 is further configured to send the first instruction and the second instruction based on the correspondence between the IP address of the wireless access point and the IP address of the switch. [0117] For more detailed descriptions of the receiving unit 61, the first establishment unit 62, the sending unit 63, and the second establishment unit 64, refer to related descriptions in the method embodiment shown in FIG. 3A and FIG. 3B. Details are not described herein again. [0118] According to the wireless controller provided in this embodiment of this application, the VxLAN between the AP and the switch can be automatically configured on the AP, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0119] Based on a same concept of the method for establishing a VxLAN in the foregoing embodiment, as shown in FIG. 7, an embodiment of this application further provides a switch 700. The switch 700 may be applied to the method for establishing a VxLAN shown in FIG. 3A and FIG. 3B. The switch 700 may be the border node or the edge node shown in FIG. 2, or may be a component (for example, a chip) applied to the border node or the edge node. The switch 700 includes: a receiving unit 71, an identification unit 72, a sending unit 73, and an adding unit 74. [0120] The receiving unit 71 is configured to snoop a dynamic host configuration protocol DHCP packet, where the DHCP packet includes a media access control MAC address of a device to which an internet protocol IP address is to be allocated. [0121] The identification unit 72 is configured to identify the device to which the IP address is to be allocated as a wireless access point. [0122] The sending unit 73 is configured to send the MAC address of the wireless access point to a wireless controller. [0123] The receiving unit 71 is further configured to receive an instruction from the wireless controller, where the instruction includes the IP address of the wireless access point. [0124] The adding unit 74 is configured to add a record of a VTEP according to the instruction, where an IP address in the record the VTEP is the IP address of the wireless access point. [0125] In an implementation, the identification unit 72 is configured to identify, based on an option in the DHCP packet, the device to which the IP address is to be allocated as the wireless access point. [0126] For more detailed descriptions of the receiving unit 71, the identification unit 72, the sending unit 73, and the adding unit 74, refer to related descriptions in the method embodiment shown in FIG. 3A and FIG. 3B. Details are not described herein again. [0127] According to the switch provided in this embodiment of this application, the switch may identify the AP, and the wireless controller establishes a correspondence between the IP address of the identified AP and the IP address of the switch, so that the switch can learn whether the AP at a peer end of the VTEP is a peer end with which the switch is expected to establish a VxLAN. The switch receives the instruction of the wireless controller, and adds the record of the VTEP, so that the VxLAN between the AP and the switch is automatically configured on the AP. In this way, a WLAN device can support an overlay network, and manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0128] An embodiment of this application further provides a wireless controller, and the wireless controller is configured to perform the foregoing methods for establishing a VxLAN. Some or all of the foregoing methods may be implemented by using hardware, or may be implemented by using software or firmware. [0129] Optionally, in specific implementation, the wireless controller may be a chip or an integrated circuit. [0130] Optionally, when some or all of the VxLAN establishment methods in the foregoing embodiments are implemented by using software or firmware, the VxLAN establishment methods may be implemented by using a wireless controller 800 provided in FIG. 8. As shown in FIG. 8, the wireless controller 800 may include:a transceiver 81, a memory 82, and a processor 83 (there may be one or more processors 83 in the wireless controller, and one processor is taken as an example in FIG. 8). In this embodiment, the transceiver 81, the memory 82, and the processor 83 may be connected by using a bus or in another manner. A bus connection is taken as an example in FIG. 8. [0131] The processor 83 is configured to perform the method steps performed by the wireless controller in FIG. 3A and FIG. 3B. [0132] Optionally, a program of the foregoing method for establishing a VxLAN may be stored in the memory 82. The memory 83 may be a physically independent unit, or may be integrated with the processor 83. The memory 82 may also be configured to store data. Optionally, when some or all of the methods for establishing a VxLAN in the foregoing embodiments are implemented by using software, the wireless controller may alternatively include only a processor. The memory configured to store a program is located outside the wireless controller. The processor is connected to the memory by using a circuit or a wire, and is configured to read and execute the program stored in the memory. [0133] The processor may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), or a WLAN device. [0134] The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field programmable gate array (FPGA), a generic array logic (generic array logic, GAL), or any combination thereof. [0135] The memory may include a volatile memory (volatile memory), for example, a random access memory (RAM). The memory may also include a non-volatile memory (non-volatile memory), for example, a flash memory (flash memory), a hard disk drive (hard disk drive, HDD), or a solid-state drive (solid-state drive, SSD). The memory may further include a combination of the foregoing types of memories. [0136] According to the wireless controller provided in this embodiment of this application, the VxLAN between the AP and the switch can be automatically configured on the AP, so that a WLAN device can support an overlay network. Manual operation is not required in a VxLAN establishment process, reducing workload for a user. [0137] An embodiment of this application further provides a switch. FIG. 9 is a schematic structural diagram of the switch according to this embodiment of this application. The switch 900 includes a physical interface 91 and a processor 92. The physical interface 91 is configured to receive and send an Ethernet frame and/or a VxLAN packet. The processor 92 is configured to perform the method steps performed by the switch in FIG. 3A and FIG. 3B. [0138] There may be one or more physical interfaces 91. The physical interface 91 may include a wireless interface and/or a wired interface. For example, the wireless interface may include a WLAN interface, a Bluetooth interface, a cellular network interface, or any combination thereof. The wired interface may include an Ethernet interface, an asynchronous transfer mode interface, a fiber channel interface, or any combination thereof. The Ethernet interface can be an electrical interface or an optical interface. Although an Ethernet frame is encapsulated in a VXLAN packet, an outer layer of the VXLAN packet does not need to be transmitted over the Ethernet. The physical interface 91 does not necessarily include (although usually includes) an Ethernet interface. [0139] There may be one or more processors 92. The processor 92 includes a central processing unit, a network processor, a graphics processing unit (graphics processing unit, GPU), an application-specific integrated circuit, a programmable logic device, or any combination thereof. The PLD may be a complex programmable logic device, a field programmable gate array, generic array logic, or any combination thereof. The processor 92 may include a control plane 921 and a forwarding plane 922. The control plane 921 and the forwarding plane 922 may be implemented by using an independent circuit, or may be integrated into one circuit. For example, the processor 92 is a multicore CPU. One or some of the multiple cores implement the control plane 921, and the other cores implement the forwarding plane 922. For another example, the control plane 921 is implemented by a CPU, and the forwarding plane 922 is implemented by an NP, an ASIC, an FPGA, or any combination thereof. For another example, the switch is a modular network device, the control plane 921 is implemented by a main control card, and the forwarding plane 922 is implemented by a line card. For another example, both the control plane 921 and the forwarding plane 922 are implemented by an NP with a control plane capability. [0140] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again. [0141] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the unit division is merely logical function division and may be another division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, or other forms. [0142] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments. [0143] All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software or firmware is used to implement the embodiments, all or some of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedure or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable apparatuses. The computer instruction may be stored in a computer-readable storage medium, or transmitted by using the computer-readable storage medium. The computer instruction may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a twisted pair) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The medium may be a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), or a magnetic medium, for example, a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, for example, a digital versatile disc (digital versatile disc, DVD), or a semiconductor medium, for example, a solid-state drive (SSD).
权利要求:
Claims (10) [0001] A method for establishing a virtual extensible local area network, VxLAN, comprising: receiving, by a wireless controller, a message from a wireless access point, wherein the message comprises an internet protocol, IP, address of the wireless access point; establishing, by the wireless controller, a channel in response to the message, wherein the channel is between the wireless controller and the wireless access point; and sending, by the wireless controller, a first instruction to the wireless access point through the channel, wherein the first instruction is used to instruct the wireless access point to add a record of a first VxLAN tunnel end point, VTEP, and an IP address in the record of the first VTEP is an IP address of a switch. [0002] The method according to claim 1, wherein the method further comprises: sending, by the wireless controller, a second instruction to the switch, wherein the second instruction is used to instruct the switch to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the wireless access point. [0003] The method according to claim 2, wherein the message further comprises a media access control, MAC, address of the wireless access point, and the method further comprises: receiving, by the wireless controller, a wireless access point identification result sent by the switch, wherein the identification result comprises the MAC address of the wireless access point; establishing, by the wireless controller, a correspondence between the IP address of the wireless access point and the IP address of the switch based on a correspondence between the IP address and the MAC address of the wireless access point in the message and a correspondence between the IP address of the switch sending the wireless access point identification result and the MAC address of the wireless access point in the wireless access point identification result; and sending, by the wireless controller, the first instruction and the second instruction based on the correspondence between the IP address of the wireless access point and the IP address of the switch. [0004] A method for establishing a virtual extensible local area network, VxLAN, comprising: snooping, by a switch, a dynamic host configuration protocol, DHCP, packet, wherein the DHCP packet comprises a media access control, MAC, address of a device to which an internet protocol, IP, address is to be allocated; identifying, by the switch, the device to which the IP address is to be allocated as a wireless access point; sending, by the switch, a wireless access point identification result to a wireless controller, wherein the identification result comprises the MAC address of the wireless access point; receiving, by the switch, an instruction from the wireless controller, wherein the instruction comprises the IP address of the wireless access point; and adding, by the switch, a record of a VxLAN tunnel end point, VTEP, according to the instruction, wherein an IP address in the record of the VTEP is the IP address of the wireless access point. [0005] The method according to claim 4, wherein the identifying, by the switch, the device to which the IP address is to be allocated as a wireless access point comprises:identifying, by the switch based on an option in the DHCP packet, the device to which the IP address is to be allocated as the wireless access point. [0006] A wireless controller, comprising: a receiving unit, configured to receive a message from a wireless access point, wherein the message comprises an internet protocol, IP, address of the wireless access point; a first establishment unit, configured to establish a channel in response to the message, wherein the channel is between the wireless controller and the wireless access point; and a sending unit, configured to send a first instruction to the wireless access point through the channel, wherein the first instruction is used to instruct the wireless access point to add a record of a first VxLAN tunnel end point, VTEP, and an IP address in the record of the first VTEP is an IP address of a switch. [0007] The wireless controller according to claim 6, wherein the sending unit is further configured to send a second instruction to the switch, wherein the second instruction is used to instruct the switch to add a record of a second VTEP, and an IP address in the record of the second VTEP is the IP address of the wireless access point. [0008] The wireless controller according to claim 7, wherein the message further comprises a media access control, MAC, address of the wireless access point; the wireless controller further comprises a second establishment unit;the receiving unit is further configured to receive a wireless access point identification result sent by the switch, wherein the identification result comprises the MAC address of the wireless access point;the second establishment unit is configured to establish a correspondence between the IP address of the wireless access point and the IP address of the switch based on a correspondence between the IP address and the MAC address of the wireless access point in the message and a correspondence between the IP address of the switch sending the wireless access point identification result and the MAC address of the wireless access point in the wireless access point identification result; andthe sending unit is further configured to send the first instruction and the second instruction based on the correspondence between the IP address of the wireless access point and the IP address of the switch. [0009] A switch, comprising: a receiving unit, configured to snoop a dynamic host configuration protocol, DHCP, packet, wherein the DHCP packet comprises a media access control, MAC, address of a device to which an internet protocol, IP, address is to be allocated; an identification unit, configured to identify the device to which the IP address is to be allocated as a wireless access point; a sending unit, configured to send a wireless access point identification result to a wireless controller, wherein the identification result comprises the MAC address of the wireless access point; the receiving unit, further configured to receive an instruction from the wireless controller, wherein the instruction comprises the IP address of the wireless access point; and an adding unit, configured to add a record of a VxLAN tunnel end point, VTEP, according to the instruction, wherein an IP address in the record the VTEP is the IP address of the wireless access point. [0010] The switch according to claim 9, wherein the identification unit is configured to identify, based on an option in the DHCP packet, the device to which the IP address is to be allocated as the wireless access point.
类似技术:
公开号 | 公开日 | 专利标题 US9716620B2|2017-07-25|Constructing a network enabling layer-2 interconnection of data centers EP3182648B1|2019-11-27|Method, apparatus and system for implementing software-defined networking | US10616108B2|2020-04-07|Scalable MAC address virtualization US9468030B2|2016-10-11|Method, device, and network system of establishing a tunnel US9154378B2|2015-10-06|Architecture for virtualized home IP service delivery WO2016155394A1|2016-10-06|Method and device for establishing link between virtual network functions US9173117B2|2015-10-27|Enhancing a mobile backup channel to address a node failure in a wireline network EP3439371B1|2020-06-24|Method and apparatus for determining access point service capabilities US6961762B1|2005-11-01|Automatic switching network points based on configuration profiles US9179330B2|2015-11-03|Virtual wireless networking EP3005822B1|2017-07-19|Mac layer transport for wi-fi direct services application service platform without internet protocol CN104283983B|2018-01-09|Virtual machine IP address distribution method and device in a kind of software defined network US8848915B2|2014-09-30|Method for automatic WLAN connection between digital devices and digital device therefor US9055430B2|2015-06-09|Rapid local address assignment for wireless communication networks US9485147B2|2016-11-01|Method and device thereof for automatically finding and configuring virtual network KR102000310B1|2019-07-15|A METHOD AND A NETWORK ELEMENT FOR TRACKING INTERNET PROTOCOL VERSION 6 | ADDRESSES OF DEVICES IN A HOME NETWORK US7512139B2|2009-03-31|Methods and systems for enabling remote booting of remote boot clients in a switched network defining a plurality of virtual local area networks | US8339991B2|2012-12-25|Node self-configuration and operation in a wireless network TW574808B|2004-02-01|Internet Protocol address acquiring method and tracking method KR101828412B1|2018-02-13|Communication method, communication apparatus and communication system US8009587B2|2011-08-30|System and method of discovery of wireless control device JP3876732B2|2007-02-07|Gateway device, gateway device address management method, and AV device having gateway function US8411587B2|2013-04-02|System and method for configuring a network US20090063706A1|2009-03-05|Combined Layer 2 Virtual MAC Address with Layer 3 IP Address Routing US20150071289A1|2015-03-12|System and method for address resolution
同族专利:
公开号 | 公开日 CN111669309A|2020-09-15|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题
法律状态:
2020-08-07| PUAI| Public reference made under article 153(3) epc to a published international application that has entered the european phase|Free format text: ORIGINAL CODE: 0009012 | 2020-08-07| STAA| Information on the status of an ep patent application or granted ep patent|Free format text: STATUS: THE APPLICATION HAS BEEN PUBLISHED | 2020-09-09| AX| Request for extension of the european patent|Extension state: BA ME | 2020-09-09| AK| Designated contracting states|Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR | 2021-02-26| STAA| Information on the status of an ep patent application or granted ep patent|Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE | 2021-03-31| 17P| Request for examination filed|Effective date: 20210222 | 2021-03-31| RBV| Designated contracting states (corrected)|Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR | 2021-04-15| STAA| Information on the status of an ep patent application or granted ep patent|Free format text: STATUS: EXAMINATION IS IN PROGRESS | 2021-05-19| 17Q| First examination report despatched|Effective date: 20210414 |
优先权:
[返回顶部]
申请号 | 申请日 | 专利标题 相关专利
Sulfonates, polymers, resist compositions and patterning process
Washing machine
Washing machine
Device for fixture finishing and tension adjusting of membrane
Structure for Equipping Band in a Plane Cathode Ray Tube
Process for preparation of 7 alpha-carboxyl 9, 11-epoxy steroids and intermediates useful therein an
国家/地区
|